package com.gs.spring.bean.config.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Component;

import com.gs.spring.bean.config.service.AuditLogRepository;
import com.gs.spring.bean.config.service.PersonService;

@Component
public class PersonServiceImpl implements PersonService {

	private AuditLogRepository auditLogRepository;
	
	public PersonServiceImpl() {
	}
	public PersonServiceImpl(@Qualifier("auditLogRepository")AuditLogRepository auditLogRepository) {
		System.out.println(auditLogRepository);
	}

	public AuditLogRepository getAuditLogRepository() {
		return auditLogRepository;
	}
	@Autowired
	public void setAuditLogRepository(AuditLogRepository auditLogRepository) {
		this.auditLogRepository = auditLogRepository;
	}
	
}
